//
//  PayTypeTableViewCell.m
//  YaDiuDiu
//
//  Created by 陈刚 on 2017/10/2.
//  Copyright © 2017年 jy. All rights reserved.
//

#import "PayTypeTableViewCell.h"

@interface PayTypeTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *itemIcon;
@property (weak, nonatomic) IBOutlet UILabel *itemTitle;
@property (weak, nonatomic) IBOutlet UIImageView *isSelect;


@end

@implementation PayTypeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setPayTypeData:(PalyTypeModel *)model{
    [self.itemIcon setImage:[UIImage imageNamed:model.imageIcon]];
    [self.itemTitle setText:model.itemTitle];
    if (model.isselect == YES) {
        [self.isSelect setImage:[UIImage imageNamed:@"勾"]];
    }else{
        [self.isSelect setImage:[UIImage imageNamed:@"椭圆-2-拷贝"]];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
